package cn.itcast.controller;

import cn.itcast.domain.Account;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/param")
public class ParamController {
    @RequestMapping("/testParam")
    public String testParam(String username,String password){
        System.out.println("-------进入到testParam----"+username+","+password);
        return "success";
    }


    @RequestMapping("/testSubmit")
    public String testParam(Account account){
        System.out.println("-------进入到testParam----"+account.toString());
        return "success";
    }
}
